package com.auxgroup;

import com.auxgroup.smarthome.ApplicationEventListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;

/**
 * Created by kevinchen on 2017/7/24.
 *  为app端与管理后台端提供api接口服务
 */
@EnableHystrix
@EnableDiscoveryClient
@SpringBootApplication
public class InnerApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(InnerApplication.class);
        springApplication.addListeners(new ApplicationEventListener());
        springApplication.run(args);
    }
}
